<mat-autocomplete #autocomplete="matAutocomplete">
  @for (state of states; track state) {
    <mat-option [value]="state.code">{{ state.name }}</mat-option>
  }
</mat-autocomplete>

<input id="plain" [matAutocomplete]="autocomplete">
<input id="disabled" disabled [matAutocomplete]="autocomplete">
